package com.qy.dubbo.client;

import com.alibaba.dubbo.config.annotation.Reference;
import com.qy.dubbo.server.api.DubboUserServer;
import org.springframework.stereotype.Service;

@Service
public class DubboUserCient {

	@Reference(check=false,retries =-1,loadbalance = "roundrobin",timeout = 1000)
	private DubboUserServer dubboUserServer;
	
	public String getUser(Long id) throws InterruptedException {
		return dubboUserServer.getUser(id);
	}
}
